package com.chujian.system.auth.controller;

import com.chujian.framework.core.base.TsDataController;
import com.chujian.framework.core.tsdata.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能权限相关
 */
@RequestMapping("/auth")
@RestController
public class FuncController extends TsDataController {

    /**
     * 获取功能授权控制
     *
     * @param funcMark 功能标识
     * @return Result
     */
    @GetMapping("/funcAuthCtrl")
    public Result<?> getFuncAuthCtrl(@RequestParam("funcMark") String funcMark) {
        return okRs(TestComponent.creTestFuncParts());
    }

}
